package com.bzm.pojo.file;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 文件分片日志
 * </p>
 *
 * @author hemiao
 * @since 2020-08-24
 */
public class SysFileShard implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文件md5
     */
    private String fileMd5;

    /**
     * 文件服务器地址
     */
    private String fileServiceUrl;

    /**
     * 文件路径
     */
    private String fileUrl;

    /**
     * 文件名称
     */
    private String fileName;

    /**
     * 当前为第几分片
     */
    private Integer currentShard;

    /**
     * 当前分片大小
     */
    private Integer currentShardSize;

    /**
     * 总分片数
     */
    private Integer totalShard;

    /**
     * 总分片数
     */
    private Integer totalShardSize;

    private Integer createUserId;

    private LocalDateTime createTime;

    private Integer updateUserId;

    private LocalDateTime updateTime;

    /**
     * 文件来源  1 用户头像  , 2 产品文件 ，3 产品属性 attr_sku ，4 、富文本 ueditor
     */
    private Integer fileSource;

    /**
     * 来源   电脑端 windos_web ，微信小程序 wx_applet，app
     */
    private String dataSource;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getFileMd5() {
        return fileMd5;
    }

    public void setFileMd5(String fileMd5) {
        this.fileMd5 = fileMd5;
    }
    public String getFileServiceUrl() {
        return fileServiceUrl;
    }

    public void setFileServiceUrl(String fileServiceUrl) {
        this.fileServiceUrl = fileServiceUrl;
    }
    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }
    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    public Integer getCurrentShard() {
        return currentShard;
    }

    public void setCurrentShard(Integer currentShard) {
        this.currentShard = currentShard;
    }
    public Integer getCurrentShardSize() {
        return currentShardSize;
    }

    public void setCurrentShardSize(Integer currentShardSize) {
        this.currentShardSize = currentShardSize;
    }
    public Integer getTotalShard() {
        return totalShard;
    }

    public void setTotalShard(Integer totalShard) {
        this.totalShard = totalShard;
    }
    public Integer getTotalShardSize() {
        return totalShardSize;
    }

    public void setTotalShardSize(Integer totalShardSize) {
        this.totalShardSize = totalShardSize;
    }
    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Integer getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public Integer getFileSource() {
        return fileSource;
    }

    public void setFileSource(Integer fileSource) {
        this.fileSource = fileSource;
    }
    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }

    @Override
    public String toString() {
        return "SysFileShard{" +
        "id=" + id +
        ", fileMd5=" + fileMd5 +
        ", fileServiceUrl=" + fileServiceUrl +
        ", fileUrl=" + fileUrl +
        ", fileName=" + fileName +
        ", currentShard=" + currentShard +
        ", currentShardSize=" + currentShardSize +
        ", totalShard=" + totalShard +
        ", totalShardSize=" + totalShardSize +
        ", createUserId=" + createUserId +
        ", createTime=" + createTime +
        ", updateUserId=" + updateUserId +
        ", updateTime=" + updateTime +
        ", fileSource=" + fileSource +
        ", dataSource=" + dataSource +
        "}";
    }
}
